<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>png++: image_info.hpp Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">png++
   &#160;<span id="projectnumber">0.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">image_info.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="image__info_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2007,2008   Alex Shulgin</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This file is part of png++ the C++ wrapper for libpng.  PNG++ is free</span>
<a name="l00005"></a>00005 <span class="comment"> * software; the exact copying conditions are as follows:</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
<a name="l00008"></a>00008 <span class="comment"> * modification, are permitted provided that the following conditions are met:</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span>
<a name="l00011"></a>00011 <span class="comment"> * this list of conditions and the following disclaimer.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span>
<a name="l00014"></a>00014 <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span>
<a name="l00015"></a>00015 <span class="comment"> * documentation and/or other materials provided with the distribution.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span>
<a name="l00018"></a>00018 <span class="comment"> * derived from this software without specific prior written permission.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS&#39;&#39; AND ANY EXPRESS OR</span>
<a name="l00021"></a>00021 <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span>
<a name="l00022"></a>00022 <span class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN</span>
<a name="l00023"></a>00023 <span class="comment"> * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
<a name="l00024"></a>00024 <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED</span>
<a name="l00025"></a>00025 <span class="comment"> * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00026"></a>00026 <span class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span>
<a name="l00027"></a>00027 <span class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span>
<a name="l00028"></a>00028 <span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
<a name="l00029"></a>00029 <span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00030"></a>00030 <span class="comment"> */</span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PNGPP_IMAGE_INFO_HPP_INCLUDED</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PNGPP_IMAGE_INFO_HPP_INCLUDED</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="types_8hpp.html">types.hpp</a>&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;<a class="code" href="palette_8hpp.html">palette.hpp</a>&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="tRNS_8hpp.html">tRNS.hpp</a>&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;<a class="code" href="pixel__traits_8hpp.html">pixel_traits.hpp</a>&quot;</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">namespace </span>png
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 
<a name="l00047"></a><a class="code" href="classpng_1_1image__info.html">00047</a>     <span class="keyword">class </span><a class="code" href="classpng_1_1image__info.html" title="Holds information about PNG image.">image_info</a>
<a name="l00048"></a>00048     {
<a name="l00049"></a>00049     <span class="keyword">public</span>:
<a name="l00055"></a><a class="code" href="classpng_1_1image__info.html#aa929b11e8c237865f7a4c9acd0ea61cf">00055</a>         <a class="code" href="classpng_1_1image__info.html#aa929b11e8c237865f7a4c9acd0ea61cf" title="Constructs the image_info object with default values for color_type, interlace_type, compression_method and filter_type.">image_info</a>()
<a name="l00056"></a>00056             : <a class="code" href="classpng_1_1image__info.html#a4acee97cd5ab36c631099e788ffdf08c">m_width</a>(0),
<a name="l00057"></a>00057               <a class="code" href="classpng_1_1image__info.html#ad36dc08da3efe4e26322e3c8eb55adfc">m_height</a>(0),
<a name="l00058"></a>00058               <a class="code" href="classpng_1_1image__info.html#a09d04b19ad511e5f4249e9dfa0e62efa">m_bit_depth</a>(0),
<a name="l00059"></a>00059               <a class="code" href="classpng_1_1image__info.html#a196348cce026bf93062a80eff78958e7">m_color_type</a>(<a class="code" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74daa13feb0dc867d21f4cf462ea971f40506">color_type_none</a>),
<a name="l00060"></a>00060               <a class="code" href="classpng_1_1image__info.html#a988c3d5bfead5238afa04a1061e0f04a">m_interlace_type</a>(<a class="code" href="namespacepng.html#a4b468278362e4ccf0b2c52f9c0692bdca173491c30047b28a7641cba46d97331a">interlace_none</a>),
<a name="l00061"></a>00061               <a class="code" href="classpng_1_1image__info.html#aace206556a5c185a86542702b72a45dc">m_compression_type</a>(<a class="code" href="namespacepng.html#a8437714ca563a374d534e5edf57fbab8a64b94496fabf9332c33d9085be0faf4b">compression_type_default</a>),
<a name="l00062"></a>00062               <a class="code" href="classpng_1_1image__info.html#aaa7afab91bfab66e0daa966695d40967">m_filter_type</a>(<a class="code" href="namespacepng.html#ab65439f6689d3a6742450e55f3e0fbcea781a2269b313a054a046007dbc5ceb05">filter_type_default</a>)
<a name="l00063"></a>00063         {
<a name="l00064"></a>00064         }
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="classpng_1_1image__info.html#ac13df5daaabb2219cf1d52c95b1f98c7">00066</a>         <span class="keywordtype">size_t</span> <a class="code" href="classpng_1_1image__info.html#ac13df5daaabb2219cf1d52c95b1f98c7">get_width</a>()<span class="keyword"> const</span>
<a name="l00067"></a>00067 <span class="keyword">        </span>{
<a name="l00068"></a>00068             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a4acee97cd5ab36c631099e788ffdf08c">m_width</a>;
<a name="l00069"></a>00069         }
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="classpng_1_1image__info.html#a3d23fc1552357d39fe4d8d017b9bea0a">00071</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a3d23fc1552357d39fe4d8d017b9bea0a">set_width</a>(<span class="keywordtype">size_t</span> width)
<a name="l00072"></a>00072         {
<a name="l00073"></a>00073             <a class="code" href="classpng_1_1image__info.html#a4acee97cd5ab36c631099e788ffdf08c">m_width</a> = width;
<a name="l00074"></a>00074         }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classpng_1_1image__info.html#a640f6451351d62920fa2786dea53cd4d">00076</a>         <span class="keywordtype">size_t</span> <a class="code" href="classpng_1_1image__info.html#a640f6451351d62920fa2786dea53cd4d">get_height</a>()<span class="keyword"> const</span>
<a name="l00077"></a>00077 <span class="keyword">        </span>{
<a name="l00078"></a>00078             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#ad36dc08da3efe4e26322e3c8eb55adfc">m_height</a>;
<a name="l00079"></a>00079         }
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classpng_1_1image__info.html#a6ccb5704bf7f715572a6129bf3009761">00081</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a6ccb5704bf7f715572a6129bf3009761">set_height</a>(<span class="keywordtype">size_t</span> height)
<a name="l00082"></a>00082         {
<a name="l00083"></a>00083             <a class="code" href="classpng_1_1image__info.html#ad36dc08da3efe4e26322e3c8eb55adfc">m_height</a> = height;
<a name="l00084"></a>00084         }
<a name="l00085"></a>00085 
<a name="l00086"></a><a class="code" href="classpng_1_1image__info.html#a8b8b0e44c44d2071d70c8606c0390854">00086</a>         <a class="code" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74da">color_type</a> <a class="code" href="classpng_1_1image__info.html#a8b8b0e44c44d2071d70c8606c0390854">get_color_type</a>()<span class="keyword"> const</span>
<a name="l00087"></a>00087 <span class="keyword">        </span>{
<a name="l00088"></a>00088             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a196348cce026bf93062a80eff78958e7">m_color_type</a>;
<a name="l00089"></a>00089         }
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="classpng_1_1image__info.html#a2eb5d253e70b620a1050affd316dfb78">00091</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a2eb5d253e70b620a1050affd316dfb78">set_color_type</a>(<a class="code" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74da">color_type</a> color_space)
<a name="l00092"></a>00092         {
<a name="l00093"></a>00093             <a class="code" href="classpng_1_1image__info.html#a196348cce026bf93062a80eff78958e7">m_color_type</a> = color_space;
<a name="l00094"></a>00094         }
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="classpng_1_1image__info.html#aa299bb6730c4b68883d7683699dfd035">00096</a>         <span class="keywordtype">size_t</span> <a class="code" href="classpng_1_1image__info.html#aa299bb6730c4b68883d7683699dfd035">get_bit_depth</a>()<span class="keyword"> const</span>
<a name="l00097"></a>00097 <span class="keyword">        </span>{
<a name="l00098"></a>00098             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a09d04b19ad511e5f4249e9dfa0e62efa">m_bit_depth</a>;
<a name="l00099"></a>00099         }
<a name="l00100"></a>00100 
<a name="l00101"></a><a class="code" href="classpng_1_1image__info.html#a1f1cf6197f7d0241d7410916076a6c08">00101</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a1f1cf6197f7d0241d7410916076a6c08">set_bit_depth</a>(<span class="keywordtype">size_t</span> bit_depth)
<a name="l00102"></a>00102         {
<a name="l00103"></a>00103             <a class="code" href="classpng_1_1image__info.html#a09d04b19ad511e5f4249e9dfa0e62efa">m_bit_depth</a> = bit_depth;
<a name="l00104"></a>00104         }
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classpng_1_1image__info.html#ac43327884ca1d053002cb3ba3ef24188">00106</a>         <a class="code" href="namespacepng.html#a4b468278362e4ccf0b2c52f9c0692bdc">interlace_type</a> <a class="code" href="classpng_1_1image__info.html#ac43327884ca1d053002cb3ba3ef24188">get_interlace_type</a>()<span class="keyword"> const</span>
<a name="l00107"></a>00107 <span class="keyword">        </span>{
<a name="l00108"></a>00108             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a988c3d5bfead5238afa04a1061e0f04a">m_interlace_type</a>;
<a name="l00109"></a>00109         }
<a name="l00110"></a>00110 
<a name="l00111"></a><a class="code" href="classpng_1_1image__info.html#a19a24d29c7f47223a8df1164c093361c">00111</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a19a24d29c7f47223a8df1164c093361c">set_interlace_type</a>(<a class="code" href="namespacepng.html#a4b468278362e4ccf0b2c52f9c0692bdc">interlace_type</a> interlace)
<a name="l00112"></a>00112         {
<a name="l00113"></a>00113             <a class="code" href="classpng_1_1image__info.html#a988c3d5bfead5238afa04a1061e0f04a">m_interlace_type</a> = interlace;
<a name="l00114"></a>00114         }
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="classpng_1_1image__info.html#ae8f5870c3fd31cc3f0cb158c2a20bbcd">00116</a>         <a class="code" href="namespacepng.html#a8437714ca563a374d534e5edf57fbab8">compression_type</a> <a class="code" href="classpng_1_1image__info.html#ae8f5870c3fd31cc3f0cb158c2a20bbcd">get_compression_type</a>()<span class="keyword"> const</span>
<a name="l00117"></a>00117 <span class="keyword">        </span>{
<a name="l00118"></a>00118             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#aace206556a5c185a86542702b72a45dc">m_compression_type</a>;
<a name="l00119"></a>00119         }
<a name="l00120"></a>00120 
<a name="l00121"></a><a class="code" href="classpng_1_1image__info.html#a5a645e38fe10f80ced96301cdb0dec74">00121</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a5a645e38fe10f80ced96301cdb0dec74">set_compression_type</a>(<a class="code" href="namespacepng.html#a8437714ca563a374d534e5edf57fbab8">compression_type</a> compression)
<a name="l00122"></a>00122         {
<a name="l00123"></a>00123             <a class="code" href="classpng_1_1image__info.html#aace206556a5c185a86542702b72a45dc">m_compression_type</a> = compression;
<a name="l00124"></a>00124         }
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classpng_1_1image__info.html#a71305d6b01e0c58838144b01d10bbb14">00126</a>         <a class="code" href="namespacepng.html#ab65439f6689d3a6742450e55f3e0fbce">filter_type</a> <a class="code" href="classpng_1_1image__info.html#a71305d6b01e0c58838144b01d10bbb14">get_filter_type</a>()<span class="keyword"> const</span>
<a name="l00127"></a>00127 <span class="keyword">        </span>{
<a name="l00128"></a>00128             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#aaa7afab91bfab66e0daa966695d40967">m_filter_type</a>;
<a name="l00129"></a>00129         }
<a name="l00130"></a>00130 
<a name="l00131"></a><a class="code" href="classpng_1_1image__info.html#a886e48b7371f2768acb9fc9768d57366">00131</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a886e48b7371f2768acb9fc9768d57366">set_filter_type</a>(<a class="code" href="namespacepng.html#ab65439f6689d3a6742450e55f3e0fbce">filter_type</a> filter)
<a name="l00132"></a>00132         {
<a name="l00133"></a>00133             <a class="code" href="classpng_1_1image__info.html#aaa7afab91bfab66e0daa966695d40967">m_filter_type</a> = filter;
<a name="l00134"></a>00134         }
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="classpng_1_1image__info.html#a3577210685e93050122d4974fc1c390a">00136</a>         <a class="code" href="namespacepng.html#a6c5f0b8146f3467ea94e6090846d1d01" title="The palette type. Currently implemented as std::vector of png::color.">palette</a> <span class="keyword">const</span>&amp; <a class="code" href="classpng_1_1image__info.html#a3577210685e93050122d4974fc1c390a">get_palette</a>()<span class="keyword"> const</span>
<a name="l00137"></a>00137 <span class="keyword">        </span>{
<a name="l00138"></a>00138             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">m_palette</a>;
<a name="l00139"></a>00139         }
<a name="l00140"></a>00140 
<a name="l00141"></a><a class="code" href="classpng_1_1image__info.html#ae48397a02ae6ddaf87aa95d8c513ec23">00141</a>         <a class="code" href="namespacepng.html#a6c5f0b8146f3467ea94e6090846d1d01" title="The palette type. Currently implemented as std::vector of png::color.">palette</a>&amp; <a class="code" href="classpng_1_1image__info.html#a3577210685e93050122d4974fc1c390a">get_palette</a>()
<a name="l00142"></a>00142         {
<a name="l00143"></a>00143             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">m_palette</a>;
<a name="l00144"></a>00144         }
<a name="l00145"></a>00145 
<a name="l00146"></a><a class="code" href="classpng_1_1image__info.html#acfc3675399a946f411d2a6e0054401f4">00146</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#acfc3675399a946f411d2a6e0054401f4">set_palette</a>(<a class="code" href="namespacepng.html#a6c5f0b8146f3467ea94e6090846d1d01" title="The palette type. Currently implemented as std::vector of png::color.">palette</a> <span class="keyword">const</span>&amp; plte)
<a name="l00147"></a>00147         {
<a name="l00148"></a>00148             <a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">m_palette</a> = plte;
<a name="l00149"></a>00149         }
<a name="l00150"></a>00150 
<a name="l00154"></a><a class="code" href="classpng_1_1image__info.html#a254c2504eba5a409b23017b2a6f5427e">00154</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a254c2504eba5a409b23017b2a6f5427e" title="Removes all entries from the palette.">drop_palette</a>()
<a name="l00155"></a>00155         {
<a name="l00156"></a>00156             <a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">m_palette</a>.clear();
<a name="l00157"></a>00157         }
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="classpng_1_1image__info.html#a9dfd2ebd5421d27c1ed839262e995650">00159</a>         <a class="code" href="namespacepng.html#ace5f679842b8b4e56df1448c62daf28e" title="The palette transparency map type. Currently implemented as std::vector of png::byte.">tRNS</a> <span class="keyword">const</span>&amp; <a class="code" href="classpng_1_1image__info.html#a9dfd2ebd5421d27c1ed839262e995650">get_tRNS</a>()<span class="keyword"> const</span>
<a name="l00160"></a>00160 <span class="keyword">        </span>{
<a name="l00161"></a>00161             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#ae16512ad01beea645e75e0edd60f0720">m_tRNS</a>;
<a name="l00162"></a>00162         }
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="classpng_1_1image__info.html#a1b5f16559a9ad9108681b92b6529a113">00164</a>         <a class="code" href="namespacepng.html#ace5f679842b8b4e56df1448c62daf28e" title="The palette transparency map type. Currently implemented as std::vector of png::byte.">tRNS</a>&amp; <a class="code" href="classpng_1_1image__info.html#a9dfd2ebd5421d27c1ed839262e995650">get_tRNS</a>()
<a name="l00165"></a>00165         {
<a name="l00166"></a>00166             <span class="keywordflow">return</span> <a class="code" href="classpng_1_1image__info.html#ae16512ad01beea645e75e0edd60f0720">m_tRNS</a>;
<a name="l00167"></a>00167         }
<a name="l00168"></a>00168 
<a name="l00169"></a><a class="code" href="classpng_1_1image__info.html#a939bed5115330604e67950dc63b555e3">00169</a>         <span class="keywordtype">void</span> <a class="code" href="classpng_1_1image__info.html#a939bed5115330604e67950dc63b555e3">set_tRNS</a>(<a class="code" href="namespacepng.html#ace5f679842b8b4e56df1448c62daf28e" title="The palette transparency map type. Currently implemented as std::vector of png::byte.">tRNS</a> <span class="keyword">const</span>&amp; trns)
<a name="l00170"></a>00170         {
<a name="l00171"></a>00171             <a class="code" href="classpng_1_1image__info.html#ae16512ad01beea645e75e0edd60f0720">m_tRNS</a> = trns;
<a name="l00172"></a>00172         }
<a name="l00173"></a>00173 
<a name="l00174"></a>00174     <span class="keyword">protected</span>:
<a name="l00175"></a><a class="code" href="classpng_1_1image__info.html#a4acee97cd5ab36c631099e788ffdf08c">00175</a>         <a class="code" href="namespacepng.html#a76064164adfdd2316adebf0a4fb83873">uint_32</a> <a class="code" href="classpng_1_1image__info.html#a4acee97cd5ab36c631099e788ffdf08c">m_width</a>;
<a name="l00176"></a><a class="code" href="classpng_1_1image__info.html#ad36dc08da3efe4e26322e3c8eb55adfc">00176</a>         <a class="code" href="namespacepng.html#a76064164adfdd2316adebf0a4fb83873">uint_32</a> <a class="code" href="classpng_1_1image__info.html#ad36dc08da3efe4e26322e3c8eb55adfc">m_height</a>;
<a name="l00177"></a><a class="code" href="classpng_1_1image__info.html#a09d04b19ad511e5f4249e9dfa0e62efa">00177</a>         <span class="keywordtype">size_t</span> <a class="code" href="classpng_1_1image__info.html#a09d04b19ad511e5f4249e9dfa0e62efa">m_bit_depth</a>;
<a name="l00178"></a><a class="code" href="classpng_1_1image__info.html#a196348cce026bf93062a80eff78958e7">00178</a>         <a class="code" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74da">color_type</a> <a class="code" href="classpng_1_1image__info.html#a196348cce026bf93062a80eff78958e7">m_color_type</a>;
<a name="l00179"></a><a class="code" href="classpng_1_1image__info.html#a988c3d5bfead5238afa04a1061e0f04a">00179</a>         <a class="code" href="namespacepng.html#a4b468278362e4ccf0b2c52f9c0692bdc">interlace_type</a> <a class="code" href="classpng_1_1image__info.html#a988c3d5bfead5238afa04a1061e0f04a">m_interlace_type</a>;
<a name="l00180"></a><a class="code" href="classpng_1_1image__info.html#aace206556a5c185a86542702b72a45dc">00180</a>         <a class="code" href="namespacepng.html#a8437714ca563a374d534e5edf57fbab8">compression_type</a> <a class="code" href="classpng_1_1image__info.html#aace206556a5c185a86542702b72a45dc">m_compression_type</a>;
<a name="l00181"></a><a class="code" href="classpng_1_1image__info.html#aaa7afab91bfab66e0daa966695d40967">00181</a>         <a class="code" href="namespacepng.html#ab65439f6689d3a6742450e55f3e0fbce">filter_type</a> <a class="code" href="classpng_1_1image__info.html#aaa7afab91bfab66e0daa966695d40967">m_filter_type</a>;
<a name="l00182"></a><a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">00182</a>         <a class="code" href="namespacepng.html#a6c5f0b8146f3467ea94e6090846d1d01" title="The palette type. Currently implemented as std::vector of png::color.">palette</a> <a class="code" href="classpng_1_1image__info.html#a1fb1b97e0f153d8203aa79d667b488c8">m_palette</a>;
<a name="l00183"></a><a class="code" href="classpng_1_1image__info.html#ae16512ad01beea645e75e0edd60f0720">00183</a>         <a class="code" href="namespacepng.html#ace5f679842b8b4e56df1448c62daf28e" title="The palette transparency map type. Currently implemented as std::vector of png::byte.">tRNS</a> <a class="code" href="classpng_1_1image__info.html#ae16512ad01beea645e75e0edd60f0720">m_tRNS</a>;
<a name="l00184"></a>00184     };
<a name="l00185"></a>00185 
<a name="l00190"></a>00190     <span class="keyword">template</span>&lt; <span class="keyword">typename</span> pixel &gt;
<a name="l00191"></a>00191     <a class="code" href="classpng_1_1image__info.html" title="Holds information about PNG image.">image_info</a>
<a name="l00192"></a><a class="code" href="namespacepng.html#a0382f7c737de4af757becbb39cc3f5ae">00192</a>     <a class="code" href="namespacepng.html#a0382f7c737de4af757becbb39cc3f5ae" title="Returns an image_info object with color_type and bit_depth fields setup appropriate for the pixel typ...">make_image_info</a>()
<a name="l00193"></a>00193     {
<a name="l00194"></a>00194         <span class="keyword">typedef</span> pixel_traits&lt; pixel &gt; traits;
<a name="l00195"></a>00195         <a class="code" href="classpng_1_1image__info.html" title="Holds information about PNG image.">image_info</a> <a class="code" href="classpng_1_1info.html" title="Holds information about PNG image. Adapter class for IO image operations.">info</a>;
<a name="l00196"></a>00196         info.<a class="code" href="classpng_1_1image__info.html#a2eb5d253e70b620a1050affd316dfb78">set_color_type</a>(traits::get_color_type());
<a name="l00197"></a>00197         info.<a class="code" href="classpng_1_1image__info.html#a1f1cf6197f7d0241d7410916076a6c08">set_bit_depth</a>(traits::get_bit_depth());
<a name="l00198"></a>00198         <span class="keywordflow">return</span> info;
<a name="l00199"></a>00199     }
<a name="l00200"></a>00200 
<a name="l00201"></a>00201 } <span class="comment">// namespace png</span>
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 <span class="preprocessor">#endif // PNGPP_IMAGE_INFO_HPP_INCLUDED</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 25 2013 14:10:10 for png++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
